﻿@using System.Configuration

@{
  Layout = null;
  var action = ((string)ViewContext.RouteData.Values["Action"]).ToLower();
  var controller = ((string)ViewContext.RouteData.Values["Controller"]).ToLower();
  /*
  var blogTitle = ConfigurationManager.AppSettings["BlogTitle"];
  var feedBurnerUrl = ConfigurationManager.AppSettings["FeedBurnerUrl"];
  */
}
<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="windows-1251">
    <link rel="shortcut icon" href="@Url.Content("~/Content/themes/simple/images/favicon.png")" type="image/png">
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <title>@ViewBag.Title</title>
    @if (IsSectionDefined("RenderMeta"))
    {
        @RenderSection("RenderMeta", required: false)
    }
    <link href="@Url.Content("~/Content/themes/simple/style.css")" rel="stylesheet" />
    @if (IsSectionDefined("AddToHead"))
    {
        @RenderSection("AddToHead", required: false)
    }
</head>

<body>
    <div id="main">
      <!-- Header & Navigation -->
      <div id="header">
        <div id="logo">
          <div id="logo_text">
            <h1><a href="~/"><span class="logo_colour">Ударим туризмом по бездорожью!</span></a></h1>
          </div>
          @Html.Action("Contacts", "home")
        </div>
        <div id="menubar">
          <ul id="menu">
            <li class="@(controller == "home" && action == "index" ? "selected" : "")">@Html.ActionLink("Главная", "Index", "Home")</li>
            <li class="@(controller == "hike" ? "selected" : "")">@Html.ActionLink("Походы", "Index", "Hike", new { page = "" }, null)</li>
            <li class="@(controller == "archive" ? "selected" : "")">@Html.ActionLink("Архив", "Index", "Archive", new { page = "", year = "" }, null)</li>
            <li class="@(controller == "photoalbum" ? "selected" : "")">@Html.ActionLink("Фото", "Index", "PhotoAlbum", new { page = "", year = "" }, null)</li>
            <li class="@(controller == "home" && action == "contact" ? "selected" : "")">@Html.ActionLink("Контакт", "Contact", "Home")</li>
            @*<li><a href="#">Форум</a></li>*@
          </ul>
        </div>
      </div>
      <!-- Main Content -->
      <div id="site_content">
      @RenderBody()
      @Html.Action("Sidebars", controller == "home" || controller == "error" ? "Hike" : System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(controller), new { action = action })
      <!-- AddThis -->
      @if (IsSectionDefined("AddToBody"))
      {
            @RenderSection("AddToBody", required: false)
      }
      </div>
        <!-- Footer -->
      <div id="footer">
        <div class="copyright">
            <div class="row">
                <b>Присоединяйтесь к нам! Мы будем рады!</b>
            </div>
            <div class="row">
                Copyright © @DateTime.Now.Year РОМАНТИКИ All Rights Reserved
            </div>

        </div>
         @Html.Action("Contacts", "home")
      
    </div>
</body>
</html>